package com.ssm.service;

import com.ssm.pojo.Student;

import java.util.List;

public interface StudentService {
    int addStudent(Student student);

    Integer isExist(Student student);

    Integer StudentLogin(String userName, String passWord);

    Integer AdminLogin(String userName, String passWord);

    Integer getStuIdByStuNumber(String userName);

    Student selectStudent(String stuNumber);

    Integer updatePersonMessage(String stuName, String passWord, int buildNumber, String tel,String stuNumber);

    Integer updateMoney(String money,String stuNumber);
    //后台查询所有数据，并遍历
    List<Student> selectUsers();

    List<Student> selectByStuNumber(Integer stuNumber);

    List<Student> selectByStuId(Integer stuId);

    List<Student> selectByStuIdAndStuNumber(Integer stuId, Integer stuNumber);
}
